﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BotonJXC.Forms.Events
{
    public delegate void BaseInfoSelectedEventHandler(object sender, BaseInfoSelectedEventArgs e);
    public class BaseInfoSelectedEventArgs : EventArgs
    {
        IList<Object> _selectedItems = null;
        public BaseInfoSelectedEventArgs(IList<Object> selectedItems)
        {
            _selectedItems = selectedItems;
        }

        public object SelectedItem
        {
            get
            {
                return SelectedItems[0];
            }
        }

        public IList<Object> SelectedItems {
            get {
                if (_selectedItems == null)
                    _selectedItems = new List<Object>();
                return _selectedItems;
            }
        }
    }
}